<?php
// +---------------------------------------------------------------------+
// | OneBase    | [ WE CAN DO IT JUST THINK ]                            |
// +---------------------------------------------------------------------+
// | Licensed   | http://www.apache.org/licenses/LICENSE-2.0 )           |
// +---------------------------------------------------------------------+
// | Author     | Bigotry <3162875@qq.com>                               |
// +---------------------------------------------------------------------+
// | Repository | https://gitee.com/Bigotry/OneBase                      |
// +---------------------------------------------------------------------+

namespace app\admin\controller;

/**
 * 班级选择控制器
 */
class Composeselect extends AdminBase
{
    
    /**
     * 全部组合列表
     */
    public function getcompostList()
    {
        $this->assign('list', $this->logicCompose->getComposeList());
        
        return $this->fetch('composeselect_list');
    }
    
    // /**
    //  * 友情链接添加
    //  */
    // public function blogrollAdd()
    // {
        
    //     IS_POST && $this->jump($this->logicCompose->blogrollEdit($this->param));
        
    //     return $this->fetch('composeselect_list');
    // }
    
    /**
     * 友情链接编辑
     */
    public function composeSelectOne()
    {
        
        // IS_POST && $this->jump($this->logicComposeselect->setcomposeSelect($this->param));
       
        $info = $this->logicComposeselect->setcomposeSelect($this->param);
        
        // $this->assign('info', $info);
        
        return $this->fetch('compose_edit');
    }
    
    /**
     * 友情链接删除
     */
    public function fenban()
    {
        $this->logicComposeselect->fenban();
        // $a = [1];
        $this->assign('list',$this->logicCompose->getComposeList());
        return $this->fetch('composeselect_list');
    }
}
